package com.keda.springdata_elasticsearch.exception;

import lombok.AllArgsConstructor;

/**
 * @author miaoguangdong
 */
@AllArgsConstructor
public enum LogCodeMessage implements CodeMessage {

    ELOG101("ELOG101", "ES服务：连接异常","检查es服务状态及连接"),

    ELOG102("ELOG102", "ES服务：IO异常","检查es服务状态及连接"),

    ELOG103("ELOG103", "ES服务：未使用ES策略","配置日志模式为ES策略(融合后端配置项avcs4.common.es:es)"),

    MSLOG100("MSLOG100", "轻服务记录日志异常","拿下融合后端的日志，联系融合通信客服"),
    ;

    private String code;

    private String message;

    private String solution;
    @Override
    public String getSolution(){
        return solution;
    }
    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
